﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Microsoft.DirectX.DirectSound;
using System.Collections;

namespace jacDigitalDrum
{
    public partial class Window1 : Window
    {
        private Device ApplicationDevice = null;
        private ArrayList sounds;

        void hasWin()
        {
            System.Windows.Forms.Panel p1 = new System.Windows.Forms.Panel();
            fh.Child = p1;
            sounds = new ArrayList();
            ApplicationDevice = new Device();
            ApplicationDevice.SetCooperativeLevel(p1, CooperativeLevel.Priority);
        }

        void Current_Exit(object sender, ExitEventArgs e)
        {
            if (sp != null)
            {
                if (sp.IsOpen)
                {
                    sp.Close();
                    sp.Dispose();
                }
            }
        }
    }
}
